@import "common";
@import "component";
@import "val";

.index-container {
  @extend %full-win;
  top: 5.5rem;
  padding: 1rem;
}

.chart-container {
  position: absolute;
  top: 6rem;
  right: 0;
  bottom: 0;
  left: 0;
}

.left-container {
  display: inline-block;
  vertical-align: top;
  width: 30%;
  height: 100%;
  text-align: center;
}

.center-container {
  width: 40%;
  display: inline-block;
  vertical-align: top;
  height: 100%;
  text-align: center;
  padding-top: 3rem;

}

.right-container {
  width: 30%;
  display: inline-block;
  vertical-align: top;
  height: 100%;
  text-align: center;

}

/*设备*/
.index-device-container {
  width: 100%;
  height: 100%;
  .index-device-chart-box {
    width: 75%;
    height: 100%;
    display: inline-block;
    vertical-align: middle;
  }
  .index-device-chart-icon {
    width: 25%;
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    //padding: 2rem 0 0 0;
    text-align: center;
    padding: 2rem 0 .5rem;
  }
}

.run-icon-container {
  width: 100%;
  display: flex;
  align-items: center;
  height: 25%;
  //display: inline-block;
  //vertical-align: middle;
  svg {
    width: 2rem;
    height: 2rem;
    background: #e7db79;
    border-radius: 50%;
    &.off {
      background-color: #aaa;
    }
    path {
      fill: rgba(30, 85, 98, .7)
    }
  }

  span {
    vertical-align: middle;
    font-size: 1.2rem;
    color: #ddd;
  }
}

.run-icon {
  display: inline-block;
  vertical-align: middle;
  background: #1fbcd2;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  & + span {
    //margin: 0 1rem 0 .5rem;
    vertical-align: middle;
    font-size: 1.2rem;
    color: #ddd;
  }
  &.on {
    background: url(../images/ui/Top_Function.png) 0 0 / 100% 100%
  }
  &.off {
    background: url(../images/ui/Top_Close.png) 0 0 / 100% 100%
  }
  &.error {
    background: url(../images/ui/Top_Fault.png) 0 0 / 100% 100%
  }
}

.pointer-title {
  font-size: 1.2rem;
  color: #5BE2EF;
}

.pointer-res {
  color: #ddd;
  font-size: 1.2rem;
}

.product-container {
  text-align: center;
}

.product-box {
  display: inline-block;
  width: 33.3%;
  vertical-align: middle;
  text-align: center;
  font-size: 1.2rem;
  color: #5BE2EF;
  p {
    font-size: 1.3rem;
    text-align: center;
  }
  span {
    font-size: 1.2rem;

  }
}

.top-part {
  background: url("../images/ui/Top_Bg.png") 0 0 / 100% 100%;
  height: calc(60% + 2rem);
  margin-top: -2rem;
}

.bottom-part {
  margin-top: -3rem;
  height: calc(40% + 3rem);
}

%bottom-base {
  display: inline-block;
  vertical-align: middle;
  height: calc(100% - 1rem);
}

.index-bottom-left {
  @extend %bottom-base;
  width: calc(25.25% - 1.5rem);
  margin: 0 1rem 0 0;
  background: url("../images/ui/Bottom_R&L_BG.png") 0 0 / 100% 100%;

}

.index-bottom-right {
  @extend %bottom-base;
  width: calc(25% - 1.5rem);
  margin: 0 0 0 1rem;
  background: url("../images/ui/Bottom_R&L_BG.png") 0 0 / 100% 100%;
}

.index-bottom-center {
  @extend %bottom-base;
  width: 50.25%;
  margin: 1rem 0;
  padding-top: 2rem;
  background: url("../images/ui/Bottom_Center_Bg.png") 0 0 / 100% 100%;
}

.chart-title-left {
  display: inline-block;
  padding: .5rem 3rem .5rem 0;
  font-size: 1.2rem;
  color: #5BE2EF;
  margin-top: 3rem;
  background: url("../images/ui/Top_Title_L.png") 0 0 / 100% 100%;
}

.chart-title-right {
  display: inline-block;
  padding: .5rem 0 .5rem 3rem;
  font-size: 1.2rem;
  color: #5BE2EF;
  margin-top: 3rem;
  background: url("../images/ui/Top_Title_R.png") 0 0 / 100% 100%;
}

.index-map-chart {
  width: 100%;
  height: calc(100% - 14rem);
}

.index-product-box {
  display: inline-block;
  vertical-align: middle;
  margin: .5rem 1rem;
  background: url("../images/ui/Top_Date_Bg.png") 0 0 / 100% 100%;
  width: calc(50% - 2rem);
  color: #ddd;
  p {
    display: inline-block;
    width: 50%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bolder;
    &:first-child {
      width: 47%;
      //padding: .5rem;

    }
    &:last-child {
      width: 53%;
      text-align: left;
      padding: .5rem 4%;
    }
    span {
      font-size: 1.5rem;
      width: 20%;
      display: inline-block;
      text-align: center;
    }
  }
}

.index-bottom-center-chart {
  width: 50%;
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.index-link {
  position: absolute;
  top: .5rem;
  padding: 1rem;
  right: 2rem;
  a {
    color: $light-text-color;
    text-decoration: none;
    * {
      font-size: 1.2rem;
    }
  }
}

.device-tooltip {
  position: fixed;
  padding: .5rem;
  background: #000;
  z-index: 9999;
  border-radius: .3rem;
  background: rgba(0, 0, 0, .8);
  color: #bbb;
  text-align: left;
  min-width: 12rem;
}